//
//  VPOSLocationManager.h
//  ShowMaps
//
//  Created by handpay on 12-12-4.
//  Copyright (c) 2012年 lihui. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HPUIEngine.h"
#import <CoreLocation/CoreLocation.h>

#define VPOS_LM                   [VPOSLocationManager sharedInstance]

typedef void(^VPOSLocateSuccessBlock)(CLLocationCoordinate2D userLocationCoordinate);
typedef void(^VPOSLocateFailBlock)(NSError *error);
typedef void (^VPOSAddressSuccessBlock) (CLLocationCoordinate2D userLocationCoordinate,NSDictionary *address);

@interface VPOSLocationManager : NSObject <CLLocationManagerDelegate>

+ (VPOSLocationManager *)sharedInstance;

- (void) locateSuccess:(void (^)(CLLocationCoordinate2D userLocationCoordinate))success Fail:(void (^)(NSError *error))fail timeoutInterval:(NSTimeInterval)timeoutInterval;

- (void) locateSuccessWithAddress:(void (^)(CLLocationCoordinate2D userLocationCoordinate,NSDictionary *address))success Fail:(void (^)(NSError *error))fail timeoutInterval:(NSTimeInterval)timeoutInterval;
@end
